import request from '@/utils/request'

// 查询汇率转换列表
export function listExchangeRate(query) {
  return request({
    url: '/sys/exchangeRate/list',
    method: 'get',
    params: query
  })
}

// 查询汇率转换详细
export function getExchangeRate(id) {
  return request({
    url: '/sys/exchangeRate/' + id,
    method: 'get'
  })
}

// 保存汇率转换
export function saveExchangeRate(data) {
  return request({
    url: '/sys/exchangeRate/save',
    method: 'post',
    data: data
  })
}

// 删除汇率转换
export function delExchangeRate(id) {
  return request({
    url: '/sys/exchangeRate/' + id,
    method: 'delete'
  })
}

// 导出汇率转换
export function exportExchangeRate(query) {
  return request({
    url: '/sys/exchangeRate/export',
    method: 'get',
    params: query
  })
}
